package org.example.sportdemo.service;

import org.example.sportdemo.entity.User;
import org.example.sportdemo.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public User login(String username,String password){
        User selectUser = userMapper.selectUser(username,password);
        return selectUser;
    }
}
